package com.contactmgr.activity;

import java.util.List;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

import com.contactmgr.R;
import com.contactmgr.listadapter.ContactListAdapter;
import com.contactmgr.logObjects.Contact;
import com.contactmgr.utils.ReadDataAppContext;

public class ContactLogActivity extends ListActivity {


	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		List<Contact> contactList = ((ReadDataAppContext) getApplicationContext()).getContactList();
		// contactview
		ArrayAdapter<Contact> contactAdp = new ContactListAdapter(this, R.layout.list_contact, contactList);
		this.setListAdapter(contactAdp);
	}

}
